const userapi = {
    loginByUsername(userLoginData: any) {
        return apidata<any, Token>({
            url: "/auth/loginByUsername",
            method: "post",
            data: userLoginData
        });
    },
    registerAndLogin(userLoginData: any) {
        return apidata<any, Token>({
            url: "/auth/registerAndLogin",
            method: "post",
            data: userLoginData
        });
    },
};

export default userapi;

/** 登录用户信息 */
export interface Token {
    /** 用户名 */
    token?: string;
}

